package com.example.day03.ex10;

import java.util.Random;

/**
 * @author 17976
 */
public class RandomDemo {
    public static void main(String[] args) {

        Random r = new Random();

        for(int i=0; i<10; i++) {

            int number = r.nextInt(10);
            System.out.println("number:" + number);
        }

        int x = r.nextInt(100) + 1;
        System.out.println(x);
    }
}
